package com.example.mapper;

import com.example.pojo.*;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.time.LocalDateTime;
import java.util.List;

@Mapper
public interface PatriarchMapper {

    List<HomeWork> list(String username);


    Patriarch getByUserNameAndPassword(Patriarch patriarch);

    String getName(String username);

    List<StudentHomeWork> getByhw(String username);

    Patriarch showMain(String username);

    Task getTaskById(String username, Integer id);

    StudentHomeWork getHomeWorkById(String username, Integer id);

    void addOpinion(Opinion opinion);

    Integer getId(Opinion opinion);

    List<Task> listTask(String username);

    List<Progress> listProgress(String username);

    List<Plan> listPlan(String username);

    void setPassWord(Pass pass);

    void uplodeHomeWork(Integer sid, Integer id, String imgUrl, LocalDateTime now);


    Integer selId(String username);

    List<Student> listStudent(String username);

    List<Teacher> getTeacherByClass(String username);

    Float getSum(String username);

    List<ClassFee> getClassFee(String username);

    Integer greadClassId(String username);

    List<Announcemen> getAnnoun(Integer greadClassId);

    StudentTask getTaskDetaById(String username, Integer id);

    void uplodeTask(Integer sid, Integer id, String imgUrl, LocalDateTime now);
}

